import VueRouter from 'vue-router';
import Home from './components/tabbar/HomeContainer.vue';
import Shopcar from './components/tabbar/ShopcarContainer.vue';
import Vip from './components/tabbar/VipContainer.vue';
import Search from './components/tabbar/SearchContainer.vue';
import NewsList from './components/news/NewsList.vue';
import NewsInfo from './components/news/NewsInfo.vue';
import photolist from './components/photos/PhotoList.vue';//单击图片分享显示的页面
import photoInfo from './components/photos/PhotoInfo.vue';
import goodslist from './components/goods/GoodsList.vue';
import goodsinfo from './components/goods/GoodsInfo.vue';
var sr = new VueRouter({
    routes:[
       {path:'/',redirect:"Home"},
       {path:'/Home',component: Home},
       {path:'/Shopcar',component: Shopcar},
       {path:'/Vip',component: Vip},
       {path:'/Search',component: Search},
       {path:'/Home/NewsList',component: NewsList},
       {path:'/Home/newsList/newsInfo/:id',component: NewsInfo},
       {path:'/Home/photoList',component: photolist},
       {path:'/Home/photoList/photoInfo/:id',component: photoInfo},
       {path:'/Home/goodslist',component: goodslist},
       {path:'/Home/goodslist/goodsinfo/:id',component: goodsinfo},
    ],
    linkActiveClass: "mui-active"
})
export default sr;